<?php
include('../global.php');
$db->is_login('admin_id','index');

$sql = "SELECT * FROM `renren_hunauhomeurl` WHERE `fake_votes` > 0 AND `status` = '1'";
$query = $db->query($sql);
$num = $db->num_rows($query);
if($num < 1){
	
}else{
	while($row = $db->fetch_array($query)){
		$data[] = array('userid'=>$row['userid'],'avatar'=>$row['avatar']);
	}
}

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="facemash"><!--SEO关键字-->
<meta name="description" content=""><!--SEO描述-->
<link rel ="" href=""><!--选项卡图标-->
<title>Admin - Facemash | Huanu</title>
<link rel="stylesheet" href="css/base.css">
<link rel="stylesheet" href="css/common.css">
<link rel="stylesheet" href="css/page.css">
<!--[if ie 6]>
<link rel="stylesheet" href="css/ie6.css">
<![endif]-->
</head>

<body>
	<div id="header" class="tc cf h150"><!-- header -->
		<h1 class="f80 h80 logo">Admin - Facemash</h1>
		<p class="f24 mt5">选出你心目中的女神（湖南农大专场）</p>
		<div id="nav" class="mt15">
			<a href="report" class="cf p10 selected">打假管理</a>
			<a href="accuse" class="cf p10">申诉管理</a>
			<a href="rank" class="cf p10">排名管理</a>
		</div>
	</div><!-- end_header -->
	<?php if($num < 1){?>
	<div id="main" class="w960 bc oh h300 mt50 c6 tc"><!-- main -->
		<p class="f24 mt100">目前没有任何报告</p>
	</div><!-- end_main -->
	<?php }else{?>
	<div id="main" class="w960 bc oh mt50 pb10"><!-- main -->
	
	<?php foreach($data as $key=>$value){?>
		<div class="tc mt10 fl rank_pic_board pb10 report_pic_board">
			<p class="f12 userid mt10"><?php echo $data[$key]['userid']?></p>
			<div class="rank_pic_wrap w230" style="background:url(../girls/<?php echo $data[$key]['avatar']?>) no-repeat;background-position:50% 50%;"></div>
			<p><input class="common_btn cf mr20 report_delete" type="submit" value="删除" /><input class="common_btn cf mr20 report_ignore" type="submit" value="忽略" /></p>
		</div>
	<?php }?>
		<div class="cl"></div>
	</div><!-- end_main -->
	<?php }?>
	<div id="footer" class=" tc w960 bc c9 mt20 pb20"><!-- footer -->
		<p>&copy;2012 Hunau_Jinan</p>
	</div><!-- end_footer -->
	
	<!-- javascript -->
	<script type="text/javascript" src="js/jquery-1.7.1.min.js"></script>
	<script type="text/javascript" src="js/script.js"></script>
</body>
</html>